<!--应收账开票登记-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <title>首页</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<div    id="content">
    <section class="content-header">
        <h1>
            <i class="fa fa-dashboard"></i>
            <strong>应收账管理</strong>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-home "></i>Home</a></li>
            <li>开票信息登记</li>
        </ol>
    </section>
    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-md-12">
                <div class="box box-info">
                    <div class="box-header with-border">
                        <i class="fa fa-th-list"></i>
                        <h4 class="box-title">开票信息登记</h4>
                    </div>
                    <div class="box-body">
                        <div class="form-inline">
                            <div class="input-group">
                                <input type="text" class="form-control" id="search"  placeholder="Search..."/>
                                <input class="form-control" type="hidden" id="sInvoicePeople" name="sInvoicePeople" th:value="${sInvoicePeopleId}"/>
                                <span class="input-group-btn">
                                    <button th:if="${module.canRead==true}" type="button" name="search" class="btn btn-info searchBtn" >查询</button>
                                    <button th:if="${module.canRead==true}" type="button" name="reset" id="reset" class="btn btn-info resetBtn">撤消</button>
                                    <button th:if="${module.canRead==true}" type="button" class="btn btn-info pull-right exportExl">导出</button>
                                </span>
                            </div>
                            <!-- <button th:if="${module.canModify==true}" type="button" class="btn btn-sm btn-info pull-right readBtn">查看开票</button>
                            <button th:if="${module.canModify==true}" type="button" class="btn btn-sm btn-info pull-right delBtn">删除开票</button>
                            <button th:if="${module.canAdd==true}" type="button" class="btn btn-sm btn-info pull-right editBtn">编辑开票</button>
                            <button th:if="${module.canAdd==true}" type="button" class="btn btn-sm btn-info pull-right addBtn">新增开票</button> -->
                            <button th:if="${module.canAdd==true}" type="button" class="btn btn-sm btn-info pull-right clearBtn">清除生效时间</button>
                            <button th:if="${module.canAdd==true}" type="button" class="btn btn-sm btn-info pull-right chanceEditBtn">确认生效时间</button>
                            <!-- <button type="button" class="btn btn-sm btn-info pull-right importReplacementList">导入开票凭据</button> -->
                        </div>
                    </div>
                    <div class="box box-body">
                        <table width="100%" id="dataTable" class="mytable dataTable table-bordered text-center table-striped table-hover">
                            <thead>
                            <tr>
                                <th width="4%">序号</th>
                                <th width="2%"><input type="checkbox" id="checkAll"/></th>
                                <th width="8%">发票种类</th>
                                <th width="10%">发票号码</th>
                                <th width="10%">金额</th>
                                <th width="10%">剩余金额</th>
                               <!--  <th width="8%">发票帐户</th> -->
                                <th width="8%">购方名称</th>
                                <th width="6%">购方账户</th>
                                <!-- <th width="6%">发票贸易型</th> -->
                                <th width="6%">开票人</th>
                                <th width="6%">时间</th>
                                <th width="6%">生效时间</th>
                                <th width="6%">备注</th>
                            </tr>
                            </thead>
                            <tbody>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!--计划初始化弹窗-->
    <div class="modal" id="paymentEditModal">
        <div class="modal-dialog" role="dialog">
            <form id="paymentEditForm">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title"><strong>开票信息</strong></h4>
                    </div>
                    <div class="modal-body">
                        <input type="hidden" name="id" id="id" />
                        <input type="hidden" name="createTime" id="createTime" />
                        <div class="form-horizontal">
                            <div class="form-group">
                                <label class="col-md-2 control-label">发票种类</label>
                                <div class="col-md-4">
                                    <div class="col-md-11">
                                        <!-- <input class="form-control" type="text"  name="sInvoiceIdentifyType" id="sInvoiceIdentifyType" /> -->
                                        <select class="form-control" style="width: 100%" type="text"  name="sInvoiceIdentifyType" id="sInvoiceIdentifyType" >
	                                         <option value = "普通发票">普通发票</option>
	                                         <option value = "专用发票">专用发票</option>
	                                     </select>
                                    </div>
                                </div>
                                <label class="col-md-2 control-label">发票号码</label>
                                <div class="col-md-4">
                                    <div class="col-md-10">
                                    <input class="form-control" type="text" id="sInvoiceIdentify" name="sInvoiceIdentify" />
                                    </div>
                                </div>
                            </div>
                            <!-- <div class="form-group">
                            	<label class="col-md-2 control-label">发票名称</label>
                                <div class="col-md-4">
                                    <div class="col-md-10">
                                    <input class="form-control" type="text" id="sInvoiceName" name="sInvoiceName" />
                                    </div>
                                </div>
                                <label class="col-md-2 control-label">发票帐户</label>
                                <div class="col-md-4">
                                    <div class="col-md-10">
                                    <input class="form-control" type="text" id="sInvoiceAccount" name="sInvoiceAccount" />
                                    </div>
                                </div>
                            </div> -->
                            <div class="form-group">
                                <label class="col-md-2 control-label">开票时间</label>
                                <div class="col-md-4">
                                    <div class="col-md-10">
                                        <input class="form-control" type="date" name="dInvoiceDate" id="dInvoiceDate" datatype="*" nullmsg="请输入开票时间"/>
                                    </div>
                                    <div class="col-md-1">
                                        <span style="color:#F00">*</span>
                                    </div>
                                </div>
                                <label class="col-md-2 control-label">金额</label>
                                <div class="col-md-4">
                                    <div class="col-md-10">
                                        <input class="form-control" type="text" id="nInvoiceActualPrice" name="nInvoiceActualPrice" datatype="*,n" nullmsg="请输入金额" onkeyup="clearNoNum(this)" errormsg="请填写数字"/>
                                    </div>
                                    <div class="col-md-1">
                                        <span style="color:#F00">*</span>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                            	<label class="col-md-2 control-label">购方名称</label>
                                <div class="col-md-4">
                                    <div class="col-md-10">
                                    	<select class="form-control" style="width: 100%" type="text"  name="sInvoiceCustomerName" id="sInvoiceCustomerName" >
	                                         <option></option>
	                                         <option th:each="customer:${customers}"
	                                                 th:text="${customer.customerName}"
	                                                 th:value="${customer.id}">
	                                         </option>
	                                     </select>
                                    <!-- <input class="form-control" type="text" id="sInvoiceCustomerName" name="sInvoiceCustomerName" /> -->
                                    </div>
                                </div>
                                <label class="col-md-2 control-label">购方帐户</label>
                                <div class="col-md-4">
                                    <div class="col-md-10">
	                                	<!-- <select class="form-control" style="width: 100%" type="text"  name="sInvoiceCustomerAccount" id="sInvoiceCustomerAccount" >
	                                         <option>请选择客户名称</option>
	                                    </select> -->
                                    	<input class="form-control" type="text" id="sInvoiceCustomerAccount" name="sInvoiceCustomerAccount" />
                                    </div>
                            	</div>
                           	</div>
                            <div class="form-group">
                            	<!-- <label class="col-md-2 control-label">发票贸易型</label>
                                <div class="col-md-4">
                                    <div class="col-md-10">
                                    <input class="form-control" type="text" id="sInvoiceTradeType" name="sInvoiceTradeType" />
                                    </div>
                                </div> -->
                                <label class="col-sm-2 control-label">开票人</label>
								<div class="col-sm-4">
									<div class="col-md-10">
										<select class="form-control" style="width: 100%" type="text"  name="sInvoicePeopleId" id="sInvoicePeopleId" datatype="*,*1-100,t" nullmsg="请输入开款人" >
	                                              <option></option>
	                                              <option th:each="user:${users}"
	                                                      th:text="${user.empLogin.name}"
	                                                      th:value="${user.empLogin.empId}">
	                                              </option>
	                                          </select>
									</div>
								</div>	
                            <!-- <div class="form-group">
                            	<label class="col-md-2 control-label">生效时间</label>
                                <div class="col-md-4">
                                    <div class="col-md-10">
                                    	<input class="form-control" type="date" name="dInvoiceEffectiveDate" id="dInvoiceEffectiveDate"/>
                                    </div>
                                </div>
                            </div> -->
                        	</div>
	                        <div class="form-group">
	                            <div class="form-group">
	                                <label class="col-md-2 control-label">备注</label>
	                                <div class="col-md-8">
	                                    <div class="col-md-12">
	                                    <textarea class="form-control" style="width:100%" name="sInvoiceMemo" id="sInvoiceMemo" row="2"></textarea>
	                                    </div>
	                                </div>
	                            </div>
	                        </div>
                    	</div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-primary saveBtn" >保存</button>
                        <button type="button" class="btn btn-default" data-dismiss="modal">返回</button>

                    </div>
                </div>
            </form>
        </div>
    </div>
    <div class="modal" id="paymentEditModalread">
        <div class="modal-dialog" role="dialog">
              <div class="modal-content">
                  <div class="modal-header">
                      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                      <h4 class="modal-title"><strong>开票信息</strong></h4>
                  </div>
                  <div class="modal-body">
                      <input type="hidden" name="id" id="id1" />
                      <input type="hidden" name="createTime" id="createTime1" />
                      <div class="form-horizontal">
                          <div class="form-group">
                              <label class="col-md-2 control-label">发票种类</label>
                              <div class="col-md-4">
                                  <div class="col-md-11">
                                      <select class="form-control" style="width: 100%" type="text"  name="sInvoiceIdentifyType1" id="sInvoiceIdentifyType1" disabled="disabled">
	                                         <option value = "普通发票">普通发票</option>
	                                         <option value = "专用发票">专用发票</option>
	                                     </select>
                                  </div>
                              </div>
                              <label class="col-md-2 control-label">发票号码</label>
                              <div class="col-md-4">
                                  <div class="col-md-10">
                                  <input class="form-control" type="text" id="sInvoiceIdentify1" name="sInvoiceIdentify1" readonly="readonly" />
                                  </div>
                              </div>
                          </div>
                          <!-- <div class="form-group">
                          	<label class="col-md-2 control-label">发票名称</label>
                              <div class="col-md-4">
                                  <div class="col-md-10">
                                  <input class="form-control" type="text" id="sInvoiceName1" name="sInvoiceName1" readonly="readonly" />
                                  </div>
                              </div>
                              <label class="col-md-2 control-label">发票帐户</label>
                              <div class="col-md-4">
                                  <div class="col-md-10">
                                  <input class="form-control" type="text" id="sInvoiceAccount1" name="sInvoiceAccount1" readonly="readonly" />
                                  </div>
                              </div>
                          </div> -->
                          <div class="form-group">
                              <label class="col-md-2 control-label">开票时间</label>
                              <div class="col-md-4">
                                  <div class="col-md-10">
                                      <input class="form-control" type="date" name="dInvoiceDate1" id="dInvoiceDate1" nullmsg="请输入收款时间" disabled="disabled"/>
                                  </div>
                                  <div class="col-md-1">
                                      <span style="color:#F00">*</span>
                                  </div>
                              </div>
                              <label class="col-md-2 control-label">金额</label>
                              <div class="col-md-4">
                                  <div class="col-md-10">
                                      <input class="form-control" readonly="readonly" type="text" id="nInvoiceActualPrice1" name="nInvoiceActualPrice1" datatype="*,n" nullmsg="请输入金额" onkeyup="clearNoNum(this)" errormsg="请填写数字"/>
                                  </div>
                                  <div class="col-md-1">
                                      <span style="color:#F00">*</span>
                                  </div>
                              </div>
                          </div>
                          <div class="form-group">
                          	<label class="col-md-2 control-label">购方名称</label>
                              <div class="col-md-4">
                                  <div class="col-md-10">
                                  <input class="form-control" type="text" id="sInvoiceCustomerName1" name="sInvoiceCustomerName1" readonly="readonly" />
                                  </div>
                              </div>
                              <label class="col-md-2 control-label">购方帐户</label>
                              <div class="col-md-4">
                                  <div class="col-md-10">
                                  <input class="form-control" type="text" id="sInvoiceCustomerAccount1" name="sInvoiceCustomerAccount1" readonly="readonly" />
                                  </div>
                              </div>
                          </div>
                          <div class="form-group">
                          	<!-- <label class="col-md-2 control-label">发票贸易型</label>
                              <div class="col-md-4">
                                  <div class="col-md-10">
                                  <input class="form-control" type="text" id="sInvoiceTradeType1" name="sInvoiceTradeType1" readonly="readonly" />
                                  </div>
                              </div> -->
                              <label class="col-sm-2 control-label">开票人</label>
								<div class="col-sm-4">
									<div class="col-md-10">
										<select class="form-control" style="width: 100%" type="text" disabled="disabled"  name="sInvoicePeopleId1" id="sInvoicePeopleId1" datatype="*,*1-100,t" nullmsg="请输入回款人" >
	                                              <option></option>
	                                              <option th:each="user:${users}"
	                                                      th:text="${user.empLogin.name}"
	                                                      th:value="${user.empLogin.empId}">
	                                              </option>
	                                          </select>
									</div>
								</div>
								<label class="col-md-2 control-label">生效时间</label>
                                <div class="col-md-4">
                                    <div class="col-md-10">
                                    	<input class="form-control" type="date" name="dInvoiceEffectiveDate1" id="dInvoiceEffectiveDate1"/>
                                    </div>
                                </div>	
                          </div>
                          <!-- <div class="form-group">
                            	
                            </div> -->
                          <div class="form-group">
                              <label class="col-md-2 control-label">备注</label>
                              <div class="col-md-8">
                                  <div class="col-md-12">
                                  <textarea class="form-control" style="width:100%" name="sInvoiceMemo1" id="sInvoiceMemo1" row="2" readonly="readonly"></textarea>
                                  </div>
                              </div>
                          </div>
                      </div>
                  </div>
                  <div class="modal-footer">
                      <button type="button" class="btn btn-default" data-dismiss="modal">返回</button>

                  </div>
              </div>
        </div>
    </div>
    <div class="modal" id="InvoiceEffectiveDateModal">
        <div class="modal-dialog" role="dialog">
              <div class="modal-content">
                  <div class="modal-header">
                      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                      <h4 class="modal-title"><strong>批量修改生效时间</strong></h4>
                  </div>
                  <div class="modal-body">
                      <input type="hidden" name="ids" id="ids" />
                      <div class="form-horizontal">
                          <div class="form-group">
                            	<label class="col-md-2 control-label">生效时间</label>
                                <div class="col-md-4">
                                    <div class="col-md-10">
                                    	<input class="form-control" type="date" name="dInvoiceEffectiveDate2" id="dInvoiceEffectiveDate2"/>
                                    </div>
                                </div>
                            </div>
                      </div>
                  </div>
                  <div class="modal-footer">
                  	  <button type="button" class="btn btn-primary savedInvoiceEffectiveDateBtn" >确认</button>
                      <button type="button" class="btn btn-default" data-dismiss="modal">返回</button>

                  </div>
              </div>
        </div>
    </div>
    <script th:src="@{/invoice/invoiceindex.js}"></script>
</div>
</body>
</html>